package com.scaffold.controller;


import com.scaffold.service.HelloApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    HelloApiService helloService;

    @RequestMapping(value = "/sayHi")
    public String sayHi() {
        return helloService.sayHi();
    }

    @RequestMapping(value = "/sayHiMessage")
    public String sayHiMessage() {
        String message = "你好";
        return helloService.sayHiMessage(message);
    }

}

